package net.xiduth.game.player.dialogues.impl;

import net.xiduth.game.WorldTile;
import net.xiduth.game.player.dialogues.Dialogue;

/**
 * 
 * @author Jae
 * 
 * Handles Fire Wall @ Legends.
 *
 */

public class LucienFire extends Dialogue {

	@Override
	public void start() {
		stage = 1;
		if (stage == 1) {
			sendOptionsDialogue("This path is one-way, are you sure?",
					"Yes, I am fearless.",
					"No thanks.");
			stage = 1;
	}
	}

	public void run(int interfaceId, int componentId) {
		if (stage == 1) {
			if (componentId == OPTION_1) {
				player.move(new WorldTile(2788, 9336, 0));
				end();
				player.getInterfaceManager().closeChatBoxInterface();
			}
			if (componentId == OPTION_2) {
				stage = 2;				
		}
		}
		if (stage == 2) {
			end();
			player.getInterfaceManager().closeChatBoxInterface();
		}
	}
	
	@Override
	public void finish() {

	}

}